
<?
$loai=$_GET[loai];
if($loai==""){$loai=0;}

$id=$_GET[id];
$id_tin=$_GET[id_tin];
$count=$_POST[count];
if ($id==""){
	for ($i = 1; $i <= $count; $i++) 
	{
	$id= $_POST[industry.$i];
	if($id!=""){break;}
	}
}
if ($aid!="")
{
$qr1=mysql_query("select * from tbpoll where  aid='$aid'"); 
$rowedit=mysql_fetch_array($qr1);
$tieude=$rowedit['atitle'];

?>
<script language="javascript">
function validate_form(thisform)
{
with (thisform)
{
	
	if (validate_required(txtten,"Bạn chưa nhập tên!")==false)
 	{txtten.focus();return false;}
	if (validate_required(parent,"Bạn chưa chọn <?=$titloaitin?>!")==false)
 	{parent.focus();return false;}
   
	
}
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding:10px">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td   width="6" height="6"><img src="images/j_crn_tl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_t_med.png" width="100%"></td>
            <td  width="6" height="6" ><img src="images/j_crn_tr_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="1" background="images/dot.png"></td>
            <td class="bg_title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><img src="images/icon-48-menumgr.png" width="48" height="48" /></td>
                <td width="45%" class="mana_title"> Sửa Câu hỏi </td>
                <td width="50%" align="center">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="75%">&nbsp;</td>
                      <td class="icon_style"><a href="#" onclick="document.getElementById('submit').click()"><img src="images/icon-32-save.png" width="32" height="33"  border="0"/><br />
                      Cập nhật</a></td>
                      <td class="icon_style"><a href="#"><img src="images/icon-32-help.png" width="32" height="32"  border="0"/><br />
                      Tr&#7907; gi&uacute;p</a></td>
                    </tr>
                  </table>
                  </td>
              </tr>
            </table></td>
            <td width="1" background="images/dot.png"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="6" height="6" ><img src="images/j_crn_bl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_b_med.png" width="100%"></td>
            <td width="6" height="6" ><img src="images/j_crn_br_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="7"></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td   width="6" height="6"><img src="images/j_crn_tl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_t_med.png" width="100%"></td>
            <td  width="6" height="6" ><img src="images/j_crn_tr_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="1" background="images/dot.png"></td>
            <td bgcolor="#fbfbfb">
            <form id="frmdanhsach" name="frmdanhsach" method="post" action="index.php?progid=22&poll=xuly&qid=<?php echo $qid; ?>" onsubmit="return validate_form(this);">
            <input type="hidden" id="aid" name="aid" value="<?=$aid?>" />
              <table width="100%" border="0" cellspacing="2" cellpadding="2">
                <tr>
                  <td valign="top" style="padding-left:15px; width:64%"><fieldset id="fieldsearch2" runat="server">
                  <legend style="font-size:14px; color: black" title="Search" class="title_field"><span class="title_field">Chi tiết <?=$titaddphanloai?></span></legend>
                  <table width="100%" border="0" cellspacing="3" cellpadding="3">
                      <tr>
                        <td align="right" width="25%" class="bg_form_left">Tên </td>
                        <td class="bg_form_right"> <input name="txtten" type="text" id="txtten" maxlength="150" style="width:250px" value="<?=$tieude?>"  />                        </td>
                      </tr>
                     
                     
                      <tr>
                        <td align="right" class="bg_form_left"><input type="submit" name="submit" id="submit" value="Cập nhật" /></td>
                        <td align="left" >
                          <input type="reset" name="Reset" id="button" value="Nhập lại" />                        </td>
                      </tr>
                    </table>
                  </fieldset></td>
                  <td></td>
                  <td   valign="top" style="padding-right:15px; width:35%"><fieldset id="fieldsearch" runat="server">
                  <legend style="font-size:14px; color: black" title="Search" class="title_field"><span class="title_field">Thông tin tóm tắt</span></legend>
                  <table width="100%" border="0" cellspacing="1" cellpadding="1">
                  <tr>
                    <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                      <tr>
                        <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
                      
                          <tr>
                            <td align="right" class="bg_form_left">&nbsp;</td>
                            <td align="left" >&nbsp;</td>
                            </tr>
                          </table></td>
                      </tr>
                      
                    </table></td>
                  </tr>
                  </table>
                  </fieldset>
                </td>
                </tr>
                </table>

                  
              
                        </form>
            </td>
            <td width="1" background="images/dot.png"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="6" height="6" ><img src="images/j_crn_bl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_b_med.png" width="100%"></td>
            <td width="6" height="6" ><img src="images/j_crn_br_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</td>
  </tr>
</table>
<? }?>